<?php

class User{

	private $name;
	private $email;
	private $cipherpass;
	
	function __construct($name,$cipherpass,$email) {
       	$this->name = $name;
		$this->email = $email;
		$this->cipherpass = $cipherpass;
	}
	
	function getName(){return $this->name;}
	function getEmail(){return $this->email;}
	function getCipherPass(){return $this->cipherpass;}
	function setName($name){$this->name = $name;}
	function setEmail($email){$this->email = $email;}
	function setCipherPass($cipherpass){$this->cipherpass = $cipherpass;}
	function setPass($pass){
		$this->cipherpass = md5($pass);
	}
	function checkLogin($cipherpass){return $cipherpass === $this->cipherpass;}
	
}


?>